﻿<local:DocumentBase x:Class="WPFExcelReport.JLTQC20"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
       Background="White" 
         Loaded="Window_Loaded" 
     >
    <local:DocumentBase.Resources>
    </local:DocumentBase.Resources>
    <Grid DataContext="{Binding}" Width="1021">
        <Grid.RowDefinitions>
            <RowDefinition Height="100" />
            <RowDefinition Height="150*" />
            <RowDefinition Height="200*" />
            <RowDefinition Height="50*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="512*"></ColumnDefinition>
            <ColumnDefinition Width="463*"></ColumnDefinition>
            <ColumnDefinition Width="49*" />
        </Grid.ColumnDefinitions>        
        <StackPanel Grid.ColumnSpan="2" Orientation="Vertical" Margin="0,0,19,66">
            <WrapPanel Width="950">
                <Label Content="品种号："    Width="70" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtART" Width="105" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="YellowGreen" Panel.ZIndex="1"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="10" FontSize="18" Foreground="#FF141111" Height="33" />
                <Label Content="检验日期从" Height="26" HorizontalAlignment="Left" Margin="10,5,0,0" Name="label3" VerticalAlignment="Top" Width="87" FontSize="16" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="0,2,0,0" Name="FROM_DN_DATE" VerticalAlignment="Top" Panel.ZIndex="4"
                                    SelectedDateChanged ="FROM_DN_DATE_SelectedDateChanged" Width="113" />
                <Label Content="至" Height="28" HorizontalAlignment="Left" Margin="10,5,0,0" Name="label4" VerticalAlignment="Top" Width="19" FontSize="16" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="0,2,0,0" Name="END_DN_DATE" VerticalAlignment="Top" Panel.ZIndex="5"
                                    SelectedDateChanged ="END_DN_DATE_SelectedDateChanged" Width="112" />
                <Button Content="查询订单" Height="33" Margin="10,0,0,0"  Name="btnQuery" Width="64" Panel.ZIndex="6"
                        Click="btnQuery_Click"/>
                <Button Content="导出订单" Height="33" Margin="10,0,0,0"  Name="btnEXCEL" Width="65" Panel.ZIndex="7"
                        Click="btnEXCEL_Click"/>
            </WrapPanel>
        </StackPanel>
        <StackPanel Margin="0,35,19,0" Grid.RowSpan="4" Grid.ColumnSpan="2">
            
            <WrapPanel Width="952">
                <DataGrid CanUserReorderColumns="True"  
          CanUserResizeRows="True" CanUserSortColumns="True"
            AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  Width="950"
                  Height="530" FontSize="11"
                  EnableColumnVirtualization="True"  
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                               ItemsSource="{Binding}" x:Name="MasterDg" 
                               Grid.ColumnSpan="2" Margin="0,5,0,0" Grid.RowSpan="3" Grid.Row="1">
                    <!--ART,COLOR,ARTNAME,STRNAME,DESCR,QOKNEUD,QCORDER,QOSIDENT,QOSPRODDATE,QOKERLDAT,QOKFRBENID,
                    QPLAN,ORDERNO,CUSTOMER,SO,QOEMERKM,DES,VALUE,QOEMEEH,QOEPBENID,QOEPDATUM -->
                    <DataGrid.Columns>
                        <DataGridTextColumn Binding="{Binding Path=ART}" Header="品种编号" Width="SizeToCells" MinWidth="50" />
                        <DataGridTextColumn Binding="{Binding Path=COLOR}" Header="颜色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=ARTNAME}" Header="品名" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=STRNAME}" Header="组织" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=DESCR}" Header="规格" Width="SizeToCells" MinWidth="50" MaxWidth="100"  />
                        <DataGridTextColumn Binding="{Binding Path=TYPE}" Header="类型" Width="SizeToCells" MinWidth="50" MaxWidth="100"  />
                        <DataGridTextColumn Binding="{Binding Path=QOKNEUD}" Header="检测开始" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=QCORDER}" Header="质检单号" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=QOSIDENT}" Header="布片" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=QOSPRODDATE}" Header="送布片日期" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=QOKERLDAT}" Header="检测结束" Width="SizeToCells" MinWidth="20" />
                        <DataGridTextColumn Binding="{Binding Path=QOKFRBENID}" Header="结束用户" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=RESULT}" Header="结果" Width="SizeToCells" MinWidth="20" />
                        <DataGridTextColumn Binding="{Binding Path=QPLAN}" Header="质检计划" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=ORDERNO}" Header="生产批号" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=CUSTOMER}" Header="客户" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=SO}" Header="销售单号" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A01}" Header="I经缩" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A02}" Header="I纬缩" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A03}" Header="Ⅲ经缩" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A04}" Header="Ⅲ纬缩" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A05}" Header="布面外观" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A06}" Header="外观变色/沾色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A07}" Header="干磨" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A08}" Header="湿磨" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A09}" Header="水洗原样变色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A10}" Header="水洗白布沾色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A11}" Header="水洗自沾色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A12}" Header="经拉(LBS)" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A13}" Header="纬拉(LBS)" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A14}" Header="经撕(LBS)" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A15}" Header="纬撕(LBS)" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A16}" Header="经滑移(LBS)（滑移值/接缝值）" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A17}" Header="纬滑移(LBS)（滑移值/接缝值）" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A18}" Header="PH" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A19}" Header="克重（g/m2)" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A20}" Header="耐水变色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A21}" Header="耐水沾色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A22}" Header="耐水自沾色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A23}" Header="耐汗变色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A24}" Header="耐汗沾色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A25}" Header="耐汗自沾色" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A26}" Header="日晒" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A27}" Header="颜色转移" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A28}" Header="熨烫" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A29}" Header="升华" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A30}" Header="非氯漂 粉末/液体" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A31}" Header="氯漂" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A32}" Header="平整度" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A33}" Header="洗后熨烫平整度" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A34}" Header="毛球" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A35}" Header="耐磨" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A36}" Header="弹性伸长率" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A37}" Header="永久变形率" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A38}" Header="弹性回复率" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A39}" Header="扭曲" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A40}" Header="纬斜" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A41}" Header="甲醛(PPM)" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A42}" Header="成份" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A43}" Header="纱支" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A44}" Header="吸水性（滴水）" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A45}" Header="吸水性（爬高）" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A46}" Header="快干" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A47}" Header="防水" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A48}" Header="防油" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A49}" Header="易去污" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A50}" Header="耐唾液" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A51}" Header="A51" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A52}" Header="A52" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A53}" Header="A53" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A54}" Header="A54" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A55}" Header="A55" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A56}" Header="A56" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A57}" Header="A57" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A58}" Header="A58" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=A59}" Header="A59" Width="SizeToCells" MinWidth="30" />
                        <!--<DataGridTextColumn Binding="{Binding Path=QOEMERKM}" Header="检测项" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=DES}" Header="名称" Width="SizeToCells" MinWidth="50" />
                        <DataGridTextColumn Binding="{Binding Path=VALUE}" Header="检测结果" Width="SizeToCells" MinWidth="50" />
                        <DataGridTextColumn Binding="{Binding Path=QOEMEEH}" Header="单位" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=QOEPBENID}" Header="检测人员" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=QOEPDATUM}" Header="检测日期" Width="SizeToCells" MinWidth="40" />-->

                    </DataGrid.Columns>
                </DataGrid  >
            </WrapPanel>
        </StackPanel>
    </Grid>
</local:DocumentBase>
